package com.lizheng.yunservice.travel.controller;

import com.lizheng.yunservice.common.domain.PageQuery;
import com.lizheng.yunservice.common.page.TableDataInfo;
import com.lizheng.yunservice.travel.doamin.vo.CulturalWorkVo;
import com.lizheng.yunservice.travel.service.ICulturalWorkService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@RequiredArgsConstructor
@RequestMapping("/vtp/app/cultural")
public class CulturalWorkController {

    private final ICulturalWorkService culturalWorkService;

    @PostMapping("/imgPgae")
    public TableDataInfo<CulturalWorkVo> list(
            @RequestBody PageQuery pageQuery
    ) {
        return culturalWorkService.getCulturalWorkList(null, pageQuery);
    }
}